package clothes.tools.service;

import clothes.tools.pojo.Commodity;

import java.util.List;

public interface CommodityService {
    public void addCommodity(Commodity commodity);

    public void deleteCommodityById(String id);

    public void updateCommodity(Commodity commodity);

    public Commodity queryCommodityById(String id);

    public List<Commodity> queryCommodity();

    public List<Commodity> queryCommodities(String page,String limit);

    public boolean existsCommodityId(String id);

    public List<Commodity> queryCommodity(String page,String limit,String name);

}
